#include <pthread.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>


int fun(int **q);

int main()
{

	int *p = NULL;

	fun(&p);

	*p = 23;

	printf("%d\n",*p);

	return 0;

}

int fun(int **q)
{
	*q = malloc(sizeof(int) * 10);
	if(*q == NULL)
	{
		return -1;
	}

	return 0;
}

